package com.bjpowernode.javaweb.servlet;

import jakarta.servlet.GenericServlet;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;

import java.io.IOException;
import java.io.PrintWriter;

public class PostServlet extends GenericServlet {
    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        res.setContentType("text/html");
        PrintWriter out=res.getWriter();
        out.println("<html>");
        out.println("   <head>    ");
        out.println("       <title> post Servlet</title>  ");
        out.println("    </head>                  ");
        out.println("   <body>           ");
        out.println("         <h1>post请求</h1>");
        out.println("   </body>         ");
        out.println("");
        out.println("</html>");
    }
}
